import { RouteRecordRaw } from 'vue-router'
import { RouterTransition } from '@/components/transition'

const routeName = 'notice'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/notice',
    name: routeName,
    redirect: '/notice/list',
    component: RouterTransition,
    meta: {
      hidden: true
    },
    children: [{
      path: 'list',
      name: `${routeName}-list`,
      component: () =>
        import(
            /* webpackChunkName: "list" */ '@/views/notice/noticeList.vue'
        ),
      meta: {
        // hidden: true
      },
    }, {
      path: 'detail',
      name: `${routeName}-detail`,
      component: () =>
        import(
            /* webpackChunkName: "list" */ '@/views/notice/noticeDetail.vue'
        ),
      meta: {
        // hidden: true
      },
    }]
  }

]

export default routes
